package com.study.example.domain.OneToOne;

import javax.persistence.*;

@Entity
public class Employee {

    @Id
    Integer id;

    @OneToOne
    @MapsId
    EmployeeInfo info;

    @Embedded
    LocationDetails location;

}
